package com.hopu.v1.mapper.front.personal;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hopu.v1.pojo.verify.StudentLeaveApplications;
import com.hopu.v1.vo.LeaveStaffVo;
import com.hopu.v1.vo.StudentLeaveVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: YwaiX
 * @Version: 1.0
 * @Date: Created in 2024-10-11 19:28:34
 * @Description:
 */
public interface FStudentLeaveMapper extends BaseMapper<StudentLeaveApplications> {
	
	/**
	 * 分页模糊查询请假记录
	 * @param page
	 * @param size
	 * @param leaveType
	 * @return
	 */
	List<StudentLeaveVo> getStudentLeaveList(@Param("page") Integer page,@Param("size") Integer size,@Param("leaveType") Integer leaveType ,@Param("studentId") Integer studentId);
	
	/**
	 * 模糊查询获取总条数
	 * @param leaveType
	 * @return
	 */
	Integer getTotal(@Param("leaveType") Integer leaveType ,@Param("studentId") Integer studentId);
	
	/**
	 * 获取审批人信息
	 * @param studentId
	 * @return
	 */
	LeaveStaffVo getApproves(Integer studentId);
}
